<%@ include file="/common/taglibs.jsp"%>

<%if(request.getSession().getAttribute("role")== "ROLE_SUPER_ADMIN" || request.getSession().getAttribute("role")== "ROLE_ADMIN") { %>
<div style="margin-bottom:10px;height:45px;">
	<ul class="glassList" style="float:right;">
	    <li>
	    	<a class="button-green" href="<c:url value='/showEventForm'/>">Create New</a> 
	    </li>
	</ul>
</div>
<% } %>

<%if(request.getSession().getAttribute("role")== "ROLE_USER" ) { %>
<c:if test="${!empty unConformedFriends}">
<div style="padding:15px;" id="blogs">
	<div style="margin-bottom: 20px;border-radius: 5px 5px 5px 5px; border: 1px solid lightGray; min-height: 108px; max-height: 110px; box-shadow: 4px 5px 5px -4px #AAAAAA;">
		<s:iterator value="unConformedFriends" status="rowstatus">
			<div><s:property value="username" /> has added you as friend. <a href="/confirmFriend?method=confirmFriends&userId=<s:property value="id" />">Confirm</a></div>
		</s:iterator>
	</div>
</div>
</c:if>
<% } %>

<div id="user-grid">
<%= request.getAttribute("eventGridString") %>
<div id="gridRecordDetails"></div>
</div>

<%-- <div>
	<table id="instHeaderTable" class="reference">
		<tr>
			<th>Name</th>
			<th>Status</th>
		</tr>
		<s:iterator value="events" status="rowstatus">
			<tr>
				<td>
					<%if(request.getSession().getAttribute("role")== "ROLE_SUPER_ADMIN" || request.getSession().getAttribute("role")== "ROLE_ADMIN") { %>
					<a href='/editEvent?event.id=${id}'>
						<s:property value="name" />
					</a>
					<% } else{ %>
						<s:property value="name" />			
					<% } %>
				</td>
				<td><s:property value="status" /></td>
				
			</tr>
		</s:iterator>
	</table>
</div> --%>


